package com.firewolf.s03.pojos;

import java.io.Serializable;

/**
 * 传递对象必须实现序列化接口
 * 
 * @author liuxing
 *
 */
public class User implements Serializable {
	private static final long serialVersionUID = -2404217363331400749L;
	private String name;
	private int age;

	public User() {
	}

	public User(String name, int age) {
		super();
		this.name = name;
		this.age = age;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	@Override
	public String toString() {
		return "User [name=" + name + ", age=" + age + "]";
	}

}
